import i18n from '@src/locales'
/**
* @description 服务项目字段
*/
const serviceFields = [
    {
        formType: 'select',
        fieldName: 'service',
        displayName: i18n.t('common.form.preview.serviceItem.colum1'),
        placeholder: i18n.t('common.placeholder.select'),
        isNull: 0,
      }, {
        formType: 'select',
        fieldName: 'settlementRules',
        displayName: i18n.t('common.zhongqi.title1'),
        placeholder: i18n.t('zhongqi.tipList.tips1'),
        isNull: 0,
      }, {
        formType: 'text',
        fieldName: 'serialNumber',
        displayName: i18n.t('common.form.preview.serviceItem.colum2'),
        isNull: 1,
        disabled: true
      }, 
      {
        formType: 'text',
        fieldName: 'serviceQualityStatus',
        displayName: i18n.t('zhongqi.setting.warrantyStatus'),
        isNull: 1,
        disabled: true
      },
      {
        formType: 'text',
        fieldName: 'type',
        displayName: i18n.t('common.form.preview.serviceItem.colum3'),
        placeholder: ' ',
        isNull: 1,
        disabled: true
      }, {
        formType: 'text',
        fieldName: 'unit',
        displayName: i18n.t('common.form.preview.serviceItem.colum4'),
        isNull: 1,
        disabled: true
      }, {
        formType: 'text',
        fieldName: 'salePrice',
        displayName: i18n.t('common.form.preview.serviceItem.colum6'),
        isNull: 1,
        disabled: true,
    }, {
        formType: 'number',
        fieldName: 'number',
        displayName: i18n.t('common.form.preview.serviceItem.colum5'),
        isNull: 0,
    }, {
        formType: 'text',
        fieldName: 'total',
        displayName: i18n.t('common.form.preview.serviceItem.colum7'),
        isNull: 1,
        disabled: true
    }
]

const currencyField = {
  formType: 'text',
  fieldName: 'salePriceCurrency',
  displayName: i18n.t('common.currency.salePriceCurrency'),
  isNull: 1,
  placeholder: i18n.t('common.placeholder.select'),
  disabled: true
}

export {
    serviceFields,
    currencyField,
}